﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using Wix.Aura.Common;
using Wix.Aura.UnitTests.Tools;

namespace Wix.Aura.UnitTests.Common {
	[TestFixture]
	public class VerbSerialization {
		[Test]
		public void EmptyVerb() {
			Verb verb = new Verb("verb");
			XmlAssert.AreEqual(@"<Verb Id=""verb"" />", verb);
		}

		[Test]
		public void AllAttributes() {
			Verb verb = new Verb("verb");
			verb.Argument = "args";
			verb.Command = "cmd";
			verb.Sequence = 2;
			verb.Target = "target";
			verb.TargetFile = "targetFile";
			verb.TargetProperty = "targetProperty";
			XmlAssert.AreEqual(@"<Verb Id=""verb"" Argument=""args"" Command=""cmd"" Sequence=""2"" Target=""target"" TargetFile=""targetFile"" TargetProperty=""targetProperty"" />", verb);
		}
	}
}
